﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;
using Wpf_ClientLeger.ServiceConnexion;

namespace Wpf_ClientLeger.BusinessObject
{
    public class User
    {
        public int idUser { get; set; }
        public string preUser { get; set; }
        public string nomUser { get; set; }
        //Pas utile de le garder en mémoire je pense => public string mdpUser { get; set; } 
        public string loginUser { get; set; }
        public ArrayList confUser { get; set; } //ArrayList d'int contenant les confidentialités du user

        public User() { }

        public User(UserDTO userDTO)
        {
            this.idUser = userDTO.idUserDTO;
            this.preUser = userDTO.preUserDTO;
            this.nomUser = userDTO.nomUserDTO;
            this.loginUser = userDTO.loginUserDTO;
            if (userDTO.confUser != null)
                this.confUser = new ArrayList(userDTO.confUser);
        }
    }
}
